/**************************************************************
 *
 * userprog/ksyscall.h
 *
 * Kernel interface for systemcalls 
 *
 * by Marcus Voelp  (c) Universitaet Karlsruhe
 *
 **************************************************************/

#ifndef __USERPROG_KSYSCALL_H__ 
#define __USERPROG_KSYSCALL_H__ 

#include "kernel.h"




void SysHalt()
{
  kernel->interrupt->Halt();
}

int SysAdd(int op1, int op2)
{
  return op1+op2;
}
int SysDiv(int op1, int op2)
{
  return op1/op2;
}

double SysMul(int op1, int op2)
{
  return op1*op2;
}

int SysPow(int op1, int op2)
{
  int n=op1;
  for(int i=1;i<op2;i++){
 
  n=n*op1;
  }
  return n;
}






#endif /* ! __USERPROG_KSYSCALL_H__ */
